package models;

import javax.persistence.*;

import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class Thematique extends Model{
	
	@Required
	@Column(unique=true)
	public String id_thematique;
	
	@Required
	public String nom;
	
	public Thematique(String nom){
		this.nom=nom;
	}

	public String toString(){
		return nom;
	}
}
